package cn.wenhaha.factory.func;

import cn.wenhaha.factory.Milk;

/**
 * @ClassName: FactoryTest
 * @description: TODO
 * @author: wyndem
 * @date: 2019/5/12 10:34
 * @Version: 1.0
 **/
public class FactoryTest {

    public static void main(String[] args) {
        Factory factory = new MengNiuFactory();
        Milk mail = factory.getMail();
        System.out.println(mail.getName());
    }
}
